From: Timm Bäder Date: Sun, 20 Oct 2019 06:39:55 +0000 (+0200) Subject: text: Fix _set_attributes docs X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~321^2^2~679 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=188203432369d0fcf2165148f56e28ea52ae716a;p=gtk4.git text: Fix _set_attributes docs The list is nullable. --- diff --git a/gtk/gtktext.c b/gtk/gtktext.c index b31cb261ed..f4b15872b1 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -6601,16 +6601,17 @@ gtk_text_get_input_hints (GtkText *self) /** * gtk_text_set_attributes: * @self: a #GtkText - * @attrs: a #PangoAttrList + * @attrs: (nullable): a #PangoAttrList or %NULL to unset * * Sets a #PangoAttrList; the attributes in the list are applied to the - * self text. + * text. */ void gtk_text_set_attributes (GtkText *self, PangoAttrList *attrs) { GtkTextPrivate *priv = gtk_text_get_instance_private (self); + g_return_if_fail (GTK_IS_TEXT (self)); if (attrs)